import request from '@/utils/request'

// 查询商户资源分组列表
export function listResourcegroup(query) {
  return request({
    url: '/merchant/resourcegroup/list',
    method: 'get',
    params: query
  })
}

// 查询商户资源分组详细
export function getResourcegroup(id) {
  return request({
    url: '/merchant/resourcegroup/' + id,
    method: 'get'
  })
}

// 新增商户资源分组
export function addResourcegroup(data) {
  return request({
    url: '/merchant/resourcegroup',
    method: 'post',
    data: data
  })
}

// 修改商户资源分组
export function updateResourcegroup(data) {
  return request({
    url: '/merchant/resourcegroup',
    method: 'put',
    data: data
  })
}

// 删除商户资源分组
export function delResourcegroup(id) {
  return request({
    url: '/merchant/resourcegroup/' + id,
    method: 'delete'
  })
}

// 导出商户资源分组
export function exportResourcegroup(query) {
  return request({
    url: '/merchant/resourcegroup/export',
    method: 'get',
    params: query
  })
}